package dongchel.vrp.view;

import dongchel.vrp.entity.Route;
import dongchel.vrp.entity.Solution;

public class ShowSolution {
	
	//show solution by string
	public static void showSolution(Solution solution, int option){
		for(int i=0;i<solution.getRouteList().size();i++){
			showRoute(solution.getRouteList().get(i));
		}
		if(option == 2){
			PlotSolution1 plotSolution1 = new PlotSolution1(solution);
			
		}
	}
	
	public static void showRoute(Route route){
		System.out.print("route "+route.getId()+":[");
		for(int i=0;i<route.getCityList().size();i++){
			System.out.print(route.getCityList().get(i).getId()+"  ");
		}
		System.out.println("]");
	}
}
